package com.example.springbootdemo09.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.Year;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class StudentQuery {
    private  Integer currentPage=1;
    //每页的显示的条数
    private Integer  pageSize=5;
    public  Integer getStar(){
        return ((this.currentPage-1)*pageSize);
    }
    private String sex;
    private String name;
    private String address;
}
